package com.system.appointment.feign;

import com.system.appointment.bean.Patient;
import com.system.appointment.vo.PatientVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @InterfaceName: PatientServiceFeign
 * @description: TODO 类描述
 * @author: Li Chuanwei
 * @date: 2023/12/10 17:07
 **/
@FeignClient(value = "patient-service", path = "/patient")
public interface PatientServiceFeign {
    @GetMapping("/get/name/{id}")
    String getPatientName(@PathVariable("id") int id);
    @GetMapping("/get/{id}")
    Patient getPatientById(@PathVariable("id") int id);
    @GetMapping("/get/patient/{id}")
    PatientVo getPatientByIdCardNumber(@PathVariable("id") String id);
}
